﻿using System;
using System.Text;
using System.Security.Cryptography;

namespace ns_SecurityManage
{
    public static class c_Hash
    {
        /// MD5 位，16字节,返回３２位长度字符串
        public static Byte[] Md5(String str)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            return md5.ComputeHash(UTF8Encoding.UTF8.GetBytes(str));
        }
    }

}